<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="com.manage.servicecenter.ServiceCenterMessageVo"%>
<%@page import="com.util.DateTools"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
ServiceCenterMessageVo detailVo = (ServiceCenterMessageVo)request.getAttribute("detail");
String textArea = "尊敬的"+detailVo.getSenduserid()+"："+
"\n"+
"\n&nbsp;&nbsp;&nbsp;&nbsp;感谢您对我本次求助的热情帮助。"+
"\n&nbsp;&nbsp;&nbsp;&nbsp;在此向您致以（真挚、真心、真诚）的感谢！祝您:工作顺利！身体健康！"+
"\n"+
"\n"+
"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+DateTools.getDate("yyyy年MM月dd日");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" co ntent="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="<%=path%>/images/css.css" rel="stylesheet" type="text/css">
<link href="<%=path%>/css/sticky.min.css" rel="stylesheet" type="text/css">
<style> 
.hover{ 
	background-color:red; 
} 
</style>
<script type="text/javascript" src="<%=path%>/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/sticky.min.js"></script>
<script type="text/javascript">
	var timer;
	var isTimerRun = false;
	$(function(){
		//办结
		$('#pjbtn').click(function(){
			if ($('#pj').text()!='') {
				$.post(
					"<%=path%>/ajax/appraise.action", 
					{
						programid: "<%=detailVo.getId()%>",
						content: $('#pj').text()
					},
					function(json){
						var obj = $.parseJSON(json);
						alert(obj.content);
						if ('评价成功'==obj.content) {
							$('#qqbzform')[0].submit();
						}
					},"text"
				);
			} else {
				$.sticky("<font color='RED'>请填写评价内容<font>");
			}
		});
		//返回
		$('#backbtn').click(function(){
			$('#qqbzform')[0].submit();
		});
	});
</script>
</head>

<body class="bg_003">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="201" height="30" align="center" background="<%=path%>/images/016.jpg"><table width="75%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="25"><img src="<%=path%>/images/1.png" width="16" height="16"></td>
        <td><strong>编号<%=detailVo.getId()%></strong></td>
      </tr>
    </table></td>
    <td align="right" background="<%=path%>/images/017.jpg" class="zi_006">待办详细信息</td>
    <td width="39"><img src="<%=path%>/images/018.jpg" width="39" height="30"></td>
  </tr>
</table>
<form action="<%=path%>/servicecenter/queryCreateList.action" name = "qqbzform" id = "qqbzform">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1" bgcolor="#e1e1e2"></td>
        <td height="298" align="center"><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e1e1">
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">姓名：</td>
            <td width="22%" height="31" align="left" bgcolor="#f5f5f5">
            	<%=detailVo.getSenduserid()%>
            </td>
            <td width="12%" height="31" align="right" bgcolor="#f5f5f5">电话号码：</td>
            <td width="20%" height="31" align="left" bgcolor="#f5f5f5">
            	<%=detailVo.getSenduserid()%>
            </td>
          </tr>
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">电子邮箱：</td>
            <td width="22%" height="31" align="left" bgcolor="#f5f5f5">
            	<%=detailVo.getSenduserid()%>
            </td>
            <td width="12%" height="31" align="right" bgcolor="#f5f5f5">求助类别：</td>
            <td width="20%" height="31" align="left" bgcolor="#f5f5f5">
            	<%=detailVo.getMessagetype()%>
            </td>
          </tr>
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">主题：</td>
            <td width="22%" height="31" align="left" bgcolor="#f5f5f5" colspan="3">
				<%=detailVo.getTheme()%>
            </td>
          </tr>
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">内容：</td>
            <td width="22%" height="31" align="left" bgcolor="#f5f5f5" colspan="3">
            	<%=detailVo.getContent()%>
            </td>
          </tr>
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">评价内容：</td>
            <td width="22%" height="31" align="left" bgcolor="#f5f5f5" colspan="3">
            	<%
            		if (detailVo.getEvaluate()!=null && !"".equals(detailVo.getEvaluate())){
            	%>
            			<%=detailVo.getEvaluate()%>
            	<%
            		} else {
            	%>
            		<textarea id="pj" rows="10" cols="100">
<%=textArea%>
            		</textarea>
            	<%}%>
            </td>
          </tr>
        </table>
          <table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="50" align="center">
              	<%
            		if (detailVo.getEvaluate()!=null && !"".equals(detailVo.getEvaluate())){
            	%>
            			<input type="button" id="backbtn" value=" 返 回 ">
            			
            	<%
            		}  else {
                 %>
                 	<input type="button" id="pjbtn" value=" 评 价 ">
              		<input type="button" id="backbtn" value=" 返 回 ">
              	<%}%>
              </td>
            </tr>
          </table></td>
        <td width="1" bgcolor="#e1e1e2"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="5" height="5"><img src="images/019.jpg" width="5" height="5"></td>
        <td width="100%" height="5" class="bg_002"></td>
        <td width="5" height="5"><img src="images/020.jpg" width="5" height="5"></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="603" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="26">&nbsp;</td>
  </tr>
</table>
</form>

</body>

</html>